package com.zjs.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("ms_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内容
     */
    private String content;

    /**
     * 时间
     */
    private Long createDate;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 作者id
     */
    private Long authorId;

    /**
     * 父级评论
     */
    private Long parentId;

    /**
     * 给谁评论的
     */
    private Long toUid;

    /**
     * 第几层评论
     */
    private Integer level;


}
